<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>

    <div id="app">
       {{ 'aaa' }}
       {{ msg  }}
       {{ change2() }}
       {{ 1+2+3+4+num }}
       {{ num>10?'大于10':'小于10' }}
       {{ num<30&&'小于20' }}
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                msg:"我是vue数据",
                num:20
            },
            methods:{
                change(){
                    console.log("我是实例的方法")
                },
                change2(){
                    return '123'
                }
            }
        })

        console.log(vm)
    </script>
</body>
</html>